import axios from "axios";
export default {
    save(data) {
        return axios.post('/comment/create',data)
    },
    getComments(data) {
        return axios.post('/comment/getCommentsPage',data)
    },
    deleteById(cid) {
        return axios.delete(`/comment/${cid}`)
    },
    like(cid) {
        return axios.post(`/commentLike/${cid}`)
    },
    cancelLike(cid) {
        return axios.delete(`/commentLike/${cid}`)
    }
}